#encoding:utf-8
import cv2
import numpy as np

img=cv2.imread('a.jpg')

print img.item(10,10,0)
print img.item(10,10,1)
print img.item(10,10,2)

print img[10,10]

img.itemset((10,10,2),100)
cv2.imshow("img",img)
print img.item(10,10,2)
print img[10,10]

img1=cv2.cvtColor(img,cv2.COLOR_BGR2HSV)

cv2.imshow("img1",img1)
cv2.waitKey()

